<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>自适应显示多个点标记</title>
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css"/>
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css"/>

    <style>
        html, body, #container {
            height: 100%;
            width: 100%;
        }

        .content-window-card {
            position: relative;
            box-shadow: none;
            bottom: 0;
            left: 0;
            width: auto;
            padding: 0;
        }

        .content-window-card p {
            height: 2rem;
        }

        .custom-info {
            border: solid 1px silver;
        }

        div.info-top {
            position: relative;
            background: none repeat scroll 0 0 #F9F9F9;
            border-bottom: 1px solid #CCC;
            border-radius: 5px 5px 0 0;
        }

        div.info-top div {
            display: inline-block;
            color: #333333;
            font-size: 14px;
            font-weight: bold;
            line-height: 31px;
            padding: 0 10px;
        }

        div.info-top img {
            position: absolute;
            top: 10px;
            right: 10px;
            transition-duration: 0.25s;
        }

        div.info-top img:hover {
            box-shadow: 0px 0px 5px #000;
        }

        div.info-middle {
            font-size: 12px;
            padding: 10px 6px;
            line-height: 20px;
        }

        div.info-bottom {
            height: 0px;
            width: 100%;
            clear: both;
            text-align: center;
        }

        div.info-bottom img {
            position: relative;
            z-index: 104;
        }

        span {
            margin-left: 5px;
            font-size: 11px;
        }

        .info-middle img {
            float: left;
            margin-right: 6px;
        }
    </style>
    <style>
        html, body, #container {
            height: 100%;
            width: 100%;
        }

        .amap-icon img{
            width: 25px;
            height: 34px;
        }
    </style>
</head>
<body>
<div id="container"></div>

<div class="input-card">
    <h4>地图自适应</h4>
    <input id="setFitView" type="button" class="btn" value="地图自适应显示" />
</div>

<!--<script type="text/javascript"-->
<!--        src="https://webapi.amap.com/maps?v=1.4.15&key=您申请的key值"></script>-->
<script type="text/javascript"
        src="https://webapi.amap.com/maps?v=1.4.15&key=52611a454bd6cf6554b959ca4e011699&plugin=AMap.DistrictSearch"></script>
<script type="text/javascript">
    var map = new AMap.Map('container', {
        resizeEnable: true,
        center: [116.396973,39.909055],
        zoom: 9
    });

    map.clearMap();  // 清除地图覆盖物

    var markers = [
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.286237,39.822064]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.477156,39.889707]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.283458,39.820597]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.300588,40.053546]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.423546,39.806878]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.292361,39.826389]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.53103,39.803951]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.516638,39.917012]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.288727,39.823785]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.425246,39.94874]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.466585,39.894201]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.514865,39.78832]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.339507,39.974981]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.284048,39.824145]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.324291,39.884285]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.295357,39.990049]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.20587,39.91928]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.288924,39.82549]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.38962,39.94856]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.45365,39.907549]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.472704,39.994111]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.289581,39.820745]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.283384,39.822827]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.466024,39.924652]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.466587,39.893784]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.435999,39.914037]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [117.022949,40.091633]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.44292,39.81454]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.541943,40.074979]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.563534,39.924268]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.564711,39.763405]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.595497,40.126184]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.316616,40.095702]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.59236,39.70167]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.512863,39.791831]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.589474,40.132623]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.290161,40.078272]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.560589,40.182321]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.640334,40.173789]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.360282,39.851611]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.657824,40.321589]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.693587,39.870792]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.351684,40.000189]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.640738,40.292222]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.461172,40.024716]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.521642,39.814457]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.073145,40.176299]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.63629,40.09979]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.565958,40.111736]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.317004,40.095429]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.442061,39.971143]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.385405,39.974427]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.398317,39.969519]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.66307,40.32582]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.492887,39.979218]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.497902,39.979137]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.29398,39.853493]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.479376,40.012245]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.351715,39.942287]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.440154,40.022872]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.2999,39.96165]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.28978,39.95983]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.433434,39.954441]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.248833,39.919461]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.307332,40.068423]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.293805,39.871406]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.16555,39.766731]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.365516,39.996945]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.295597,39.99036]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.648675,39.83245]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.34701,39.72882]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.296817,39.960878]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.654945,39.923819]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.50225,39.801381]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.540685,39.765878]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.518609,39.806002]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.331714,39.771016]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.148487,39.710175]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.487495,39.918232]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.534688,39.815475]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.49685,39.74536]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.532605,39.814359]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.415412,40.124369]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.558504,39.773979]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.536256,39.808482]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.325596,39.882233]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.531351,39.788129]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.543393,40.100168]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.622284,40.097589]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.32067,39.911327]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.53054,39.966194]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.34066,39.79124]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.32151,39.688564]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.39954,39.989506]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.2736,39.889015]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.505604,39.857001]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.232019,39.893611]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.40393,39.70863]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.486593,39.893257]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.321962,39.774252]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.19075,39.734438]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.521016,40.077643]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.263434,39.852767]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.500937,39.784635]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.53376,40.246968]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.693436,40.199259]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.272003,40.240765]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.359976,39.772848]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.145622,40.100016]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.145622,40.100016]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.786509,39.617888]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.144518,40.102674]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.144345,40.107621]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.304231,39.794267]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.374435,39.838879]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.470959,39.860323]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.017096,39.696779]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.681567,39.665552]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.643362,39.646787]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.33358,39.849431]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.557281,39.743447]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.307819,39.792287]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.190828,39.733632]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.272013,39.882259]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.306424,40.04624]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [117.266781,40.661432]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.333782,39.890842]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.336455,39.847813]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.487827,39.893434]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.321645,39.774384]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.272013,39.882259]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.233792,39.860241]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.136539,40.106084]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.569081,40.070469]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.340198,39.989801]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.432083,39.93922]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.353009,39.841404]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.142625,39.756865]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.303773,39.684765]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.411741,40.064021]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.322891,40.139583]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.353396,39.736224]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.321883,39.774344]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.527178,39.768952]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.113935,39.722811]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.333782,39.890842]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.308662,40.062397]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.475081,39.986168]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.430836,39.737537]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.479701,39.979296]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.559905,40.016145]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.377746,39.782504]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.677874,39.876895]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.276136,39.922347]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.582905,39.870447]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.56505,39.738988]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.400546,39.805822]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.568231,39.783242]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.289371,40.044972]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.661903,39.863991]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.491137,40.000136]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.551181,40.089521]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.37903,39.997819]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.227127,39.904887]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.26513,39.909317]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.644461,39.838297]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.042336,40.483682]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.641238,39.906162]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.352034,39.847668]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.146393,39.820841]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.461934,39.947957]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.575908,39.789754]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.420491,40.224419]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.523241,40.032509]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.404217,39.817225]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.287554,39.670822]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.273979,39.680763]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.144348,40.109612]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.65407,39.950204]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.291016,40.029985]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.04478,39.72083]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.566499,40.075761]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.474975,39.986227]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.350689,39.945495]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.298909,39.856541]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.388998,39.87003]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.582047,39.871444]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.381817,39.902504]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.349131,39.942438]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.558494,40.016221]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.240087,40.213602]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [117.126231,40.174236]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.35039,39.842556]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.352298,39.844937]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.3518,39.845627]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.33329,39.849969]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.064023,39.6747]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.064693,39.671851]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.441155,40.025291]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.595843,39.921855]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.539336,39.805586]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.588808,39.698712]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.473523,39.912376]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.33081,39.995731]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.303071,39.825723]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.1388,39.812619]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.141035,40.10201]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.312805,39.763802]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.348734,39.938712]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.277211,40.022713]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.245705,40.07603]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.469948,39.909746]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.39934,39.805766]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.649335,40.29608]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.232868,40.199675]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.651115,39.85921]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.141704,39.743656]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.639666,39.892937]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.336471,39.847747]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.409772,39.820857]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.481848,40.001481]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.332539,39.880112]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.190557,39.73956]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.345218,39.870716]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.310257,39.863251]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.321863,39.905081]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.44749,39.85177]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.66347,40.16105]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.69082,39.86408]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.56388,39.77947]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.59936,39.90228]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.46751,39.99766]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.64271,39.87727]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.24039,39.83381]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.2368,39.84414]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.67077,39.88006]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.458887,39.909161]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.277874,39.931612]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.41493,39.859]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.28934,40.0517]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.58663,39.90438]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.49412,39.916355]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.34831,40.06647]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.45968,39.92817]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.458418,39.806489]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.524182,39.783411]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.61174,40.11995]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.448985,39.971226]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.53083,40.00813]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.5872,39.91385]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.327532,39.963996]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.30178,39.82804]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.49332,39.93465]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.46284,39.909]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.406027,40.036912]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.36717,39.855248]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.32945,39.93938]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.431862,39.940399]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.41103,39.96856]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.65182,39.89425]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.31283,39.984189]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.67843,39.90149]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.33423,39.89797]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.49056,39.89353]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.414504,39.982835]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.29386,39.92467]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.5369,39.8063]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.240554,39.835174]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.14366,39.90045]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.5981,40.12023]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.47903,40.13341]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.18843,40.04244]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.67166,39.88696]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.68992,39.88678]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.36216,39.99949]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.46156,39.97818]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.5013,39.94013]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.32819,40.04995]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.66282,39.90603]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.48898,39.86408]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.33885,40.06991]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.41704,40.04561]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.486505,39.912636]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.33937,39.845128]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.67981,39.89327]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.284065,39.867158]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.252,39.8898]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.26268,40.09913]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.510885,39.903693]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.209408,39.753708]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.4369,39.8567]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.47811,40.00358]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.41301,39.91433]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.28629,39.83551]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.26794,40.10134]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.4604,39.92084]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.5097,39.80309]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.319579,39.672676]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.66044,39.90623]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.50515,39.79296]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.326137,39.982141]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.33379,39.99433]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.653644,39.889216]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.329944,39.972434]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.469012,40.004298]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.312945,39.940822]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.29896,40.08524]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.506394,39.866708]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.450363,39.905172]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.49177,39.875237]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.460295,39.798373]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.486611,39.961327]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.60584,39.929204]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.222083,39.904763]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.40182,39.80814]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.45948,39.99044]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.45793,39.98568]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.426852,39.858603]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.344234,39.732217]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.653469,39.892796]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.303098,39.825573]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.311792,40.079595]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.326761,39.733196]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.331367,39.849723]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.473587,39.841819]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.533839,39.917848]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.067645,39.712705]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.956955,39.748853]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.517683,39.784133]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.536703,39.957305]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.596091,40.040225]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.95186,39.7258]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.986916,39.71767]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.170445,39.770417]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.503141,39.939859]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.436896,39.940511]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.503243,39.942488]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.962816,39.763823]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.987484,39.720537]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.343106,40.013502]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.968727,39.760823]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.061019,39.710719]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.059752,39.709638]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.960888,39.752703]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.503497,39.9381]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.290165,40.078055]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.057683,39.711046]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.965538,39.762371]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.373013,40.042472]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.97697,39.715183]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.030785,39.710621]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.067363,39.710048]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.108189,39.895775]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.979986,39.718088]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.969588,39.762056]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.432452,39.938459]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.980832,39.718524]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.372868,40.042813]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.525917,40.082559]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.330702,39.994511]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.293882,40.04122]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.308774,39.892477]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.973772,39.761041]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [115.967136,39.724092]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.319304,39.929571]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.578474,39.927202]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.314025,39.997818]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.498563,39.785586]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.315301,39.685448]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.327128,39.993479]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.302412,39.97409]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.41028,39.923635]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.340001,39.946834]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.336061,39.998623]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.235266,39.847969]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.542777,40.079357]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.41468,39.98761]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.46812,40.002923]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.277174,39.958007]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.443131,39.905156]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.200448,39.995512]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.613188,39.919461]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.460901,39.995485]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.631679,40.183263]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.400953,39.873584]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.3457,39.960403]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.499159,39.785724]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.416657,39.860273]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.333882,39.984611]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.354261,39.922911]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.41297,39.841848]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.587453,39.930035]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.513177,39.801393]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.474133,39.90964]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.341785,39.730267]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.375816,39.897446]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.49144,39.981541]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.476775,39.86419]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.333522,39.998566]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.52337,39.793266]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.440647,39.891241]},
        {icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png',position: [116.476507,39.894064]},

    ];

    // 添加点到地图上
    markers.forEach(function(marker) {
        var markerx = new AMap.Marker({
            map: map,
            icon: marker.icon,
            position: [marker.position[0], marker.position[1]],
            offset: new AMap.Pixel(-13, -30)
        });
    });
    var center = map.getCenter();
    // 添加事件监听, 使地图自适应显示到合适的范围
    AMap.event.addDomListener(document.getElementById('setFitView'), 'click', function() {
        var newCenter = map.setFitView();
    });

    var district = null;
    var polygons=[];
    function drawBounds() {
        //加载行政区划插件
        if(!district){
            //实例化DistrictSearch
            var opts = {
                subdistrict: 0,   //获取边界不需要返回下级行政区
                extensions: 'all',  //返回行政区边界坐标组等具体信息
                level: 'district'  //查询行政级别为区
            };
            district = new AMap.DistrictSearch(opts);
        }
        //行政区查询

        district.search('朝阳区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#0071ea',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('东城区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#ffa07a',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('通州区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#98fb98',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('顺义区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#ffb6c1',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('大兴区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#ffa500',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('丰台区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#9370db',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('西城区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#adff2f',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('海淀区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#add8e6',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('昌平区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#ffe4c4',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('石景山区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#fa8072',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('房山区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#00ff7f',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

        district.search('门头沟区', function(status, result) {
            polygons = [];
            var bounds = result.districtList[0].boundaries;
            if (bounds) {
                for (var i = 0, l = bounds.length; i < l; i++) {
                    //生成行政区划polygon
                    var polygon = new AMap.Polygon({
                        strokeWeight: 1,
                        path: bounds[i],
                        fillOpacity: 0.4,
                        fillColor: '#ffff00',
                        strokeColor: '#0071ea'
                    });
                    polygons.push(polygon);
                }
            }
            map.add(polygons)
        });

    }
    drawBounds();
</script>
</body>
</html>